<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>01window对象</title>
</head>
<body>
01window对象
<form action="">1</form>
<form action="">2</form>
<form action="">3</form>
<input type="text" accesskey="a"size="13"value="123"tabindex="2"/>
<input type="password" />

<script type="text/javascript">
    /*---------------------window-------------------------------------*/
   /* console.log(document);
    console.log(history);
    console.log(innerHeight+"  "+innerWidth);
    console.log(length);
    console.log(name);
    console.log(Navigator);
    console.log(opener);*/
    /*---------------------location-------------------------------------*/
   /* console.log("location.hash:"+location.hash);
    console.log("location.host:"+location.host);
    console.log("location.hostname:"+location.hostname);
    console.log("location.href:"+location.href);
    console.log("location.pathname:"+location.pathname);
    console.log("location.search:"+location.search);*/
    /*---------------------document-------------------------------------*/
   /* console.log("document.anchors:"+document.anchors);
    console.log("document.forms:"+document.forms);
    console.log("document.images:"+document.images);
    console.log("document.body:"+document.body);
    console.log("document.cookie:"+document.cookie);
    console.log("document.domain:"+document.domain);
    console.log("document.referrer:"+document.referrer);
    console.log("document.title:"+document.title);
    console.log("document.open :"+document.open());
    console.log("document.write :"+document.write());*/
   var rate=2;
  console.log("★★★★★☆☆☆☆☆".slice(5-rate,10-rate));
</script>
</body>
</html>